package com.flower.wholesale.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author: 姚雁飞
 * @desc:
 * @date: 2020年3月24日 下午2:46:39
 * @since JDK1.8
 * @see com.flower.wholesale.config
 */
@SuppressWarnings("deprecation")
@Configuration
public class DefalutPageConfig extends WebMvcConfigurerAdapter {
	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		registry.addViewController("/").setViewName("forward:/login.html");
		registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
		super.addViewControllers(registry);
	}
}
